package com.example.demo.controllerPage;

import cn.dev33.satoken.basic.SaBasicUtil;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @Author: Pinp
 * @Date: 2021/9/24 12:09
 */
@Slf4j
@Controller
@RequestMapping("test")
public class TestPage {

    @RequestMapping("auth")
    public String auth(){
        log.info("Begin...");
        SaBasicUtil.check("test:1234");
        log.info("Go...");
        return "index";
    }

}
